<h2 class="post-listings">Post listings</h2><hr>
<table>
    <thead>
    <tr>
        <th width="300">Post Title</th>
        <th width="120">Post Edit</th>
        <th width="120">Post Delete</th>
        <th width="120">Post View</th>
    </tr>
    </thead>
    <tbody>
        @foreach ($posts as $post)
            <tr>
                <td>{{ $post->title }}</td>
                <td>{{ HTML::linkRoute('post.edit', 'Edit', $post->id) }}</td>
                <td>{{ HTML::linkRoute('post.delete', 'Delete', $post->id) }}</td>
                <td>{{ HTML::linkRoute('post.show', 'View', $post->id, ['target' => '_blank']) }}</td>
            </tr>
        @endforeach
    </tbody>
</table>
{{ $posts->links() }}
